<?php
class Zend_View_Helper_NumberFormat{
	
	public $decimalpoint;
	
	public $separator;
	
	public function __construct(){
		
		$this->decimalpoint='.';
		
		$this->separator=',';
		
	}
	
	public function numberFormat($float,$bit,$format=true){
  
		if($format){
        
			return number_format(round($float,$bit),$bit,$this->decimalpoint,$this->separator);
			
		}else{
			
			return round($float,$bit);
			
		}
		
	}

}

